//第八套
interface SportRecord {
    id: number
    userId: number
    sportType: string
    sportCalorie: number
    sportDate: string
    // getSprotCalorie():number
}
const sportRecordsList: SportRecord[] = [
    { id: 1, userId: 1, sportType: '跑步', sportCalorie: 20, sportDate: '2024-09-1 8:00:25' },
    { id: 2, userId: 1, sportType: '走路', sportCalorie: 20, sportDate: '2024-09-1 10:00:53' },
    { id: 3, userId: 1, sportType: '跳绳', sportCalorie: 10, sportDate: '2024-09-1 20:19:44' },
    { id: 4, userId: 2, sportType: '跳绳', sportCalorie: 10, sportDate: '2024-09-2 20:19:44' },

]
console.log(sportRecordsList);




//第九套
interface DietRecord {
    id: number
    userId: number
    dietName: string
    dietImage: string
    dietCalorie: number
    dietTime: string
    // getDietCalorie():number
}
const dietRecordsList: DietRecord[] = [
    { id: 1, userId: 1, dietName: '早餐', dietImage: '/images/1.png', dietCalorie: 20, dietTime: '2024-09-1 8:00:25' },
    { id: 2, userId: 1, dietName: '中餐', dietImage: '/images/2.png', dietCalorie: 20, dietTime: '2024-09-1 10:00:53' },
    { id: 3, userId: 1, dietName: '晚餐', dietImage: '/images/3.png', dietCalorie: 10, dietTime: '2024-09-1 20:19:44' },
    { id: 4, userId: 2, dietName: '晚餐', dietImage: '/images/4.png', dietCalorie: 5, dietTime: '2024-09-1 15:19:44' },

]
console.log(dietRecordsList);



//第十套
interface HealthPlan {
    id: number
    userId: number
    planName: string
    targetWeight: number
    startWeight: number
    startDate: string
    endDate: string
    planStatus: string
    // getPlanName():string
}
const planRecordsList: HealthPlan[] = [
    { id: 1, userId: 1, planName: '我的减肥', targetWeight: 68, startWeight: 74, startDate: '2020-09-1', endDate: '2020-12-1', planStatus: '达成' },
    { id: 2, userId: 1, planName: '我的减肥', targetWeight: 68, startWeight: 74, startDate: '2020-09-1', endDate: '2020-12-1', planStatus: '未达成' },
    { id: 3, userId: 1, planName: '我的减肥', targetWeight: 68, startWeight: 74, startDate: '2020-09-1', endDate: '2020-12-1', planStatus: '达成' },
    { id: 4, userId: 1, planName: '我的减肥', targetWeight: 68, startWeight: 74, startDate: '2020-09-1', endDate: '2020-12-1', planStatus: '未达成' },

]
console.log(planRecordsList);